<?php

class Application_Form_Media extends Zend_Form
{

    public function init()
    {
        $this->setName('create-media');
      //  $this->setMethod('post');
        
        $name = new Zend_Form_Element_Text('name');
        $name->setLabel('Name media')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addFilter('StripTags')
	        ->addFilter('StringTrim');       
        
        $href = new Zend_Form_Element_Text('href');
        $href->setLabel('Link');
        
        $text = new Zend_Form_Element_Textarea('text');
        $text->setLabel('Text')
                ->setRequired(true);
        
        $create = new Zend_Form_Element_Submit('create');
        $create->setLabel('Create');
        $this->setElements(array($name, $href, $text, $create));
    }


}

